package com.gree.scmservice.entity.saas;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * Created by 180686 on 2021/6/24 12:56
 */

import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.PK;
import org.nutz.dao.entity.annotation.Table;
import com.gree.common.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 站点信息对象 SAAS_SITE
 *
 * @author gscm
 * @date 2021-10-19
 */
@Data
@Table("SAAS_SITE")

@ApiModel(description = "站点信息")
public class SaasSite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 站点ID */
    @Name
    @ApiModelProperty("站点ID")
    private String site_id;

    /** 租户ID */
    @Column(hump = true)
    @ApiModelProperty("租户ID")
    private String tenantId;

    /** 站点名称 */
    @Column
    @ApiModelProperty("站点名称")
    private String title;

    /** 站点图标 */
    @Column
    @ApiModelProperty("站点图标")
    private String logo;

    /** 站点简介 */
    @Column
    @ApiModelProperty("站点简介")
    private String desa;

    /** 地址 */
    @Column
    @ApiModelProperty("地址")
    private String address;

    /** 联系电话 */
    @Column
    @ApiModelProperty("联系电话")
    private String phone;

    /** 微信 */
    @Column
    @ApiModelProperty("微信")
    private String qq;

    /** QQ */
    @Column
    @ApiModelProperty("QQ")
    private String weixin;

    /** 状态 */
    @Column
    @ApiModelProperty("状态")
    private Long status;

    /** 关闭原因 */
    @Column(hump = true)
    @ApiModelProperty("关闭原因")
    private String closeReason;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column
    @ApiModelProperty("创建时间")
    private LocalDateTime create_time;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column
    @ApiModelProperty("修改时间")
    private LocalDateTime modify_time;

    /** 站点URl */
    @Column(hump = true)
    @ApiModelProperty("站点URl")
    private String addressUrl;

    /** 公司名称 */
    @Column
    @ApiModelProperty("公司名称")
    private String company;

    public void saasSiteNoPage()
    {
        super.setBaseEntityNull();
    }
}